import Layout from '@/layouts';
import LogoutIcon from '@/assets/assets-slide-logout.svg';

export default [
  {
    path: '/user',
    name: 'user',
    component: Layout,
    redirect: '/user/index',
    meta: { title: '个人页', icon: 'user-circle' },
    children: [
      {
        path: 'index',
        name: 'UserIndex',
        component: () => import('@/pages/user/index.vue'),
        meta: { title: '个人中心' }
      }
    ]
  },
  // {
  //   path: '/loginRedirect',
  //   name: 'loginRedirect',
  //   meta: { title: '登录页', icon: LogoutIcon },
  //   component: () => import('@/pages/login/index.vue'),
  //   children: [
  //     {
  //       path: 'index',
  //       redirect: '/login',
  //       component: () => import('@/layouts/blank.vue'),
  //       meta: { title: '登录中心' }
  //     }
  //   ]
  // },
  {
    path: '/other',
    name: 'other',
    component: Layout,
    redirect: '/other/index',
    meta: { title: '其他', icon: 'service' },
    children: [
      {
        path: 'workorder',
        name: 'WorkorderIndex',
        component: () => import('@/pages/other/workorder.vue'),
        meta: { title: '工单中心' }
      },
      {
        path: 'article',
        name: 'article',
        component: () => import('@/pages/other/article.vue'),
        meta: { title: '文章中心' }
      }
    ]
  },
];
